﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Radiation___IM.Commands
{
    public class Channel : ICommand
    {
        private readonly string m_commandkey = "channel";

        public Channel()
        {
        }

        public string commandKey()
        {
            return m_commandkey;
        }

        public string requiredPermission()
        {
            return "create_channel";
        }

        public void execute(string[] command_parts, Client client)
        {
            if (command_parts.Length > 1)
                (new ChannelCommandRunner()).ExecuteCommand(command_parts, client);
            else
                MessageExecution.sendData(client, "The channel command needs at least an option");
        }
    }
}
